<div class="login-form">
  <ul class="breadcrumb">
    <li><a href="<?=Yii::app()->createUrl('site/index')?>"><i class="fa fa-home"></i> 首页</a></li>
    <li class="active"><a href=""><i class="fa fa-lock"></i> 登录</a></li>
  </ul>
    <form action="" method="post" class="form-horizontal">
        <div class="form-group">
            <label for="username" class="col-md-1 control-label">账号</label>
            <div class="col-md-4">
                <input type="text" name="username" id="username" data-required="true" class="form-control" required="" autofocus="" placeholder="请输入账号" maxlength="20">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-md-1 control-label">密码</label>
            <div class="col-md-4">
                <input type="password" name="password" data-required="true" id="password" class="form-control" required="" placeholder="请输入密码">
                <div class="help-block"><i class="fa fa-lock"></i> 密码已经过MD5算法进行加密</div>
            </div>
        </div>
          <div class="form-group">
              <label class="control-label col-md-1">角色</label>
              <div class="col-md-2">
                  <label><input type="radio" name="type" value="1" checked> 学生</label>
                  <label><input type="radio" name="type" value="2"> 教师</label>
                  <label><input type="radio" name="type" value="3"> 管理员</label>
              </div>
          </div>
        <div class="form-group">
            <div class="col-md-5 text-center">
                <button type="submit" class="btn btn-primary">登陆</button>
                <a href="<?=Yii::app()->createUrl('site/register')?>" class="btn btn-success">学生注册</a>
            </div>
        </div>
    </form>
</div>
<script src="/public/lib/icheck/icheck.min.js"></script>
<script src="/public/js/main.js"></script>
<script>
    $(function(){
       initiCheck();
    });
</script>
<?php Yii::app()->clientScript->registerCssFile('/public/lib/icheck/skins/all.css')?>